#include "rabbitmenu.h"
#include "ui_rabbitmenu.h"

RabbitMenu::RabbitMenu(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::RabbitMenu)
{
    ui->setupUi(this);
    setWindowFlags(Qt::FramelessWindowHint);
    setAttribute(Qt::WA_TranslucentBackground);
}

void RabbitMenu::mousePressEvent(QMouseEvent *e)
{
    close();
}

void RabbitMenu::leaveEvent(QEvent *e)
{
    close();
}

RabbitMenu::~RabbitMenu()
{
    delete ui;
}
